<?php 

	class NewAction extends BaseAction{
		
		public function getNewList(){
			
			$NewModel = M('New');
			$newList = $NewModel -> select();
			$this -> assign('newList',$newList);
			$this -> display('new');
		}
		
		public function getNewCotentById(){
			
			$id = $this->_get('id');
			$NewModel = M('New');
			$new = $NewModel ->where('newid='.$id) ->find();
			$this ->assign('new',$new);
			$this ->display('description');
		}
		
	}
?>